package work.work40;

/**
 * 用户
 */
public class User {
    //账号
    private String accountNumber;
    //密码
    private String password;
    //金额
    private double money;
    //空语句
    public User(){}
    //输入用户信息方法
    public User(String accountNumber, String password, double money) {
        this.accountNumber = accountNumber;
        this.password = password;
        this.money = money;
    }

        //账号的访问器
    public String getAccountNumber(){
        return this.accountNumber;
    }
    //账号的修改器
    public void setAccountNumber(String accountNumber){
        this.accountNumber = accountNumber;
    }
    //密码的访问器
    public String getPassword(){
        return  this.password;
    }
    //密码的修改器
    public void setPassword(String password){
        this.password = password;
    }
    //金额的访问器
    public double getmoney(){
        return this.money;
    }
    //金额的修改器
    public void setMoney(double money){
        this.money = money;
    }
}
